package com.sq.partner.manager.dao.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.sq.partner.manager.dao.TradSmsTemplateDao;
import com.sq.partner.manager.mybatis.model.TradSmsTemplate;
@Repository
public class TradSmsTemplateDaoImpl extends BaseDaoImpl implements TradSmsTemplateDao {

	@Override
	public List<TradSmsTemplate> queryTrade(String smsTtemplateType) throws Exception {
		return queryList("queryTradSmsTemplateByType",smsTtemplateType);
	}

	@Override
	public TradSmsTemplate queryTradeByCode(String smsTtemplateCode) throws Exception {
		return (TradSmsTemplate)queryList("queryTradSmsTemplateByCode",smsTtemplateCode).get(0);
	}

}
